import axiosServer from '../utils/request'
/**
 * 登录接口
 * @param {*} username 
 * @param {*} password 
 * @returns 
 */
export const RequestLogin = (username,password)=>{
    return axiosServer({
        method:'post',
        url:'/api/login',
        data:{
            username,
            password
        }
    })
}

/**
 * get请求
 */
 export const RequestDeleteProduct =(id)=>{
    return axiosServer({
        method:'get',
        url:'/api/shop/delete',
        params:{
            id
        }
    })
}